<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%pageContext.setAttribute("ctp",request.getContextPath());%>
<head>
    <title>已退款订单</title>
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/normalize.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/htmleaf-demo.css">
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/style.css">
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/normalize.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/demo.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/fonts/tour/font-awesome-4.2.0/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/menu_sideslide.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/img.css">

</head>
<body>
<div class="container">
    <div class="menu-wrap">
        <nav class="menu">
            <div class="icon-list">
                <a href="${ctp}/shopping/userInfo"><span><div id="divcss5"><img src="${ctp}/get/userImg/${loginUser.userName}" alt="头像" height="80" width="80"/></div>${loginUser.userName}</span></a>
                <a href="${ctp}/shopping/shoppingIndex"><i class="fa fa-fw fa-bar-chart-o"></i><span>主页</span></a>
                <a href="${ctp}/shopping/shoppingCart/${loginUser.userName}/false"><i class="fa fa-fw fa-star-o"></i><span>购物车</span></a>
                <a href="${ctp}/shopping/getUserOrder/unSent"><i class="fa fa-fw fa-bell-o"></i><span>订单</span></a>
                <a href="${ctp}/update/updateUserInfo"><i class="fa fa-fw fa-envelope-o"></i><span>修改信息</span></a>
                <a href="${ctp}/logOut"><i class="fa fa-fw fa-newspaper-o"></i><span>退出登录</span></a>
            </div>
        </nav>
        <button class="close-button" id="close-button">Close Menu</button>
    </div>
    <button class="menu-button" id="open-button">Open Menu</button>
    <div class="content-wrap">
        <div class="content">
            <div class="htmleaf-container">
                <header class="htmleaf-header">
                    <h1>在线鲜花 <span>足不出户就能送货上门</span></h1>
                </header>
                <nav>
                    <ul id="main">
                        <li><a href="${ctp}/shopping/getUserOrder/unSent">待发货</a></li>
                        <li><a href="${ctp}/shopping/getUserOrder/sent">已发货</a></li>
                        <li><a href="${ctp}/shopping/getUserOrder/signed">已签收</a></li>
                        <li><a href="${ctp}/shopping/getUserOrder/refunding">退款中</a></li>
                        <li><a href="${ctp}/shopping/getUserOrder/refund">已退款</a></li>
                        <li><a href="${ctp}/shopping/getUserOrder/confirm">已确认</a></li>
                        <div id="marker"></div>
                    </ul>
                </nav>
                <div id="centralTable">
                    <table border="1" cellpadding="5" cellspacing="0">
                        <tr>已退款订单</tr>
                        <tr>
                            <th>下单时间</th>
                            <th>收货地址</th>
                            <th>GID</th>
                            <th>鲜花名称</th>
                            <th>鲜花图片</th>
                            <th>鲜花价格</th>
                            <th>鲜花数量</th>
                            <th>备注</th>
                            <th>总价格</th>
                        </tr>
                        <c:forEach items="${refundOrders}" var="refundOrder">
                            <tr>
                                <td>${refundOrder.order.time}</td>
                                <td>${refundOrder.user.address}</td>
                                <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                            </tr>
                            <c:forEach items="${refundOrder.orderedGood}" var="good">
                                <tr>
                                    <td></td><td></td>
                                    <td>${good.goodId}</td>
                                    <td>${good.goodName}</td>
                                    <td><img src="${ctp}/get/goodImg/${good.goodId}" width="50" height="50" alt="鲜花图片"/></td>
                                    <td>${good.sellPrice}</td>
                                    <td>${good.goodNum}</td>
                                    <td>${good.note}</td>
                                    <td></td>
                                </tr>
                            </c:forEach>
                            <tr>
                                <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                                <td>
                                    <form action="${ctp}/shopping/delOrder" method="post">
                                        <input name="orderId" type="hidden" value="${refundOrder.order.orderId}">
                                        <input name="goodStatus" type="hidden" value="${refundOrder.order.status}">
                                        <input name="status" type="hidden" value="refund">
                                        <input type="submit" value="删除订单">
                                    </form>
                                </td>
                                <td>${refundOrder.order.count}</td>
                            </tr>
                        </c:forEach>
                    </table><br/><br/><br/>
                </div>
            </div>
        </div>
    </div><!-- /content-wrap -->
</div><!-- /container -->


<script src="${ctp}/static/js/tour/classie.js"></script>
<script src="${ctp}/static/js/tour/main.js"></script>


</body>
</html>
